<#include "../include/comm_jlb_macro.ftl"/>
<html>
	<head>
	<title>网站后台管理系统-${pageTitle!''}管理</title>
	<link href="/css/productSetting.css" rel="stylesheet" type="text/css" />
	<@gmc_common_js "select" />
</head>
<body>
	<div class="right" data-name="tgProductSetting_list">
    <div class="location">
     <div class="location01">您现在的位置是：首页 &gt; <strong class="m_title"></strong></div>
    </div>
    <div class="sort">
     <div class="sort1 m_title" ></div>
     <div class="query">
		<form id="queryForm" >
			<ul>
				<li style="width: 12%; height: 30px;">
					<span class="classify">礼品类型：</span>
					<select id="giftType" name="giftType" style="width: 100px;">
	                  <option value="" > 请选择 </option>
	                  <#list DictionaryUtil.getTypes(DictionaryType.PRESENT_ORIGIN.getCode()) as c>
	                  <option value="${c.dictionaryId}" <#if  giftType?? && giftType!="" > <#if giftType ? number==c.dictionaryId> selected </#if> </#if>  > ${c.showName!''} </option>
	                  </#list>
	                </select>
				</li>
				<li style="width: 5%; height: 30px;">
					<button type="button" class="btn btn-default" id="queryBtn" >查&nbsp;询</button>
				</li>
			</ul>
		</form>
     </div>
    </div>
    <div class="form">
		<div class="form2">
		<table width="100%"  border="1" align="left" cellpadding="0" cellspacing="0" bordercolor="#ffffff" style="border-collapse:collapse">
	      <tr class="lan">
	        <td height="37" align="center" valign="middle" background="/images/erji_22.jpg"><strong>序号</strong></td>
	        <td height="37" align="center" valign="middle" background="/images/erji_22.jpg"><strong>礼品类型</strong></td>
	        <td height="37" align="center" valign="middle" background="/images/erji_22.jpg"><strong>礼品数量</strong></td>
	        <td height="37" align="center" valign="middle" background="/images/erji_22.jpg"><strong>更新人</strong></td>
	        <td height="37" align="center" valign="middle" background="/images/erji_22.jpg"><strong>更新时间</strong></td>
	        <td height="37" align="center" valign="middle" background="/images/erji_22.jpg"><strong>操 作</strong></td>
	       </tr>
       <#list pager.data as c>
       <tr>
	 	  <td align="center" class="hui">
	 	  	${c_index+1}
	 	  </td>
	 	  <td align="center" class="hui">
	 	  <#if c.giftType??>
	 	    ${DictionaryUtil.getName(c.giftType)} 
	 	  </#if>
	 	  </td>
		  <td align="center" class="hui">${c.quantity!''}</td>
	 	  <td align="center" class="hui">
	 	  <#if c.inPerson??>
	 	    	${c.inPerson}
	 	  </#if>
	 	  </td>
		  <td align="center" class="hui">
			 <#if c.updateTime??>
        	 	 ${c.updateTime?string("yyyy-MM-dd")}
 		 	 </#if>
	 	  </td>
		  <td align="center" class="hui" style="width:300px;"  >
       		<div class="btn-group">
  			<#if subject.isPermitted("tgProductSetting:edit")>
			  <button type="button" class="btn btn-default"  onclick="productSetting.toAdd('${c.id}')">配置</button>
			 </#if>
      		</div>
          </td>
       </tr>
       </#list>
      </table>
     </div>
     <@pageBar   pager=pager url="/tgProductSetting/list.action?jsonParam=${jsonParam!''}" join="&"> </@pageBar> 
    </div>
   </div>
  <!-- 弹窗 结束 -->
	<#include "../include/deleteConfirmModal.ftl">
    <script src="/js/productSetting.js"></script>
    <script>
		productSetting.initPage();
	</script>
</html>



